package com.jokelandave.sportzbetz.pojo;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Team {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String name;
	
	@Persistent
	private Sport sport;
	
	public String getName()
	{
		return name;
	}
	
	public Sport getSport()
	{
		return sport;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public void setSport(Sport sport)
	{
		this.sport = sport;
	}
	
	public Key getKey()
	{
		return key;
	}
	
}
